home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Mania 5
/
MacMania 5.toast
/
/
Internet software
/
MacWebCam 2.4
/
SampleScripts
/
Anarchie sample
next >
Wrap
Text File
|
1996-08-06
|
734b
|
20 lines
-- A post-process script to FTP the last image to a remote location.
-- This script uses a two step process to minimize the time that a image is unavailable to the http server.
-- Any attept to FTP an image from the Mac to a remote http server could result in errors due to read/write contention.
-- Use at your own risk!
-- To use:
-- Change the variables below, and add passwords, if needed.
tell application "Anarchie"
set ftptempfile to "/yourpath/temp.jpg"
set ftpdestfile to "/yourpath/current.jpg"
set yourFTPHost to "ftp.yourhost.com"
set yourLocalImage to "RAM Disk:Image.jpg"
store file yourLocalImage host yourFTPHost path ftptempfile
rename host yourFTPHost path ftptempfile newname ftpdestfile
end tell